import Vue from 'vue'
import App from './App.vue'
//引入登录拦截
import 'until/index.js'
//实例化Element-Ui
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// Vue.use(ElementUI);
//实例化uView Ui
import uView from "uview-ui"
Vue.use(uView)

import {Request,Loginout,Upload,BackPage,Get_token} from 'until/api.js'
//实例化封装的request请求
Vue.prototype.Request=Request
//实例化封装的退出登录请求
Vue.prototype.Loginout=Loginout
//封装上传图片的请求
Vue.prototype.Upload=Upload
//封装返回之前界面
Vue.prototype.BackPage=BackPage
//封装获取token
Vue.prototype.Get_token=Get_token

//mian.js引入store
import store from 'until/tabber.js'
Vue.prototype.$store=store

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	...App,
	store
})
app.$mount()

